<%@ page contentType="text/html; charset=UTF-8" errorPage="/WEB-INF/jsp/pages/jspError.jsp"%>
<head>
<link href="css/login.css" rel="stylesheet" type="text/css" />
<script> 
// 保持自己是最TOP的
if (top.location != self.location)
    top.location=self.location;
</script>
<script language="javascript"> 
	function validate() {
		var oForm = document.loginForm;
		var numbersOnly = /^[0-9]+$/;
		if (oForm.txtUserAccount.value == "") {
			alert("请输入登录账号！！！");
			oForm.txtUserAccount.focus();
			oForm.txtUserAccount.select();
		}else if (oForm.txtPassword.value == "") {
			alert("请输入登录密码！！！");
			oForm.txtPassword.focus();
			oForm.txtPassword.select();
		}else if (oForm.txtValidCode.value == "") {
			alert("请输入验证码！！！");
			oForm.txtValidCode.focus();
			oForm.txtValidCode.select();
		}else {
			//oForm.btnSubmit.disabled = true;
			return true;
		}
		return false;
	}
	window.onload = function () {
		try {
			if(document.loginForm.txtUserAccount.value == '') {
				document.loginForm.txtUserAccount.focus();
			}else {
				document.loginForm.txtPassword.focus();
			}
		}catch(e) {}
	}//	
function getCode()
{
	document.writeln("<img style=\"cursor:pointer;cursor:hand;\" title=\"看不清？点击更换图片。\" src=\"code.jsp\" onclick=\"chgSrc(this);\"/>");
}
function chgSrc(obj)
{
	obj.src="code.jsp?tmp="+Math.round(Math.random()*100000);
}	
</script>
</head>
<body id=userlogin_body>
<form method="POST" action="index.jsp" name="loginForm"
	onSubmit="return validate();">


<table width="1046" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td width="1046" height="176" background="images/login/login_top.jpg">&nbsp;</td>
	</tr>
</table>
<table width="1046" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td width="141"><img src="images/login/login_l1.jpg" width="141"
			height="389" /></td>
		<td width="28"><img src="images/login/login_l2.jpg" width="407"
			height="389" /></td>
		<td width="815" align="center" valign="top"
			background="images/login/login_r1.jpg">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="140">&nbsp;</td>
			</tr>
		</table>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="33%" height="40" align="right" valign="middle">用户名：</td>
				<td width="2%">&nbsp;</td>
				<td width="65%" align="left" valign="middle"><label> <input
					type="text" name="txtUserAccount" value=""
					onFocus="if(this.value==' 请输入用户名')this.value='';" class="kk">
				</label></td>
			</tr>
			<tr>
				<td height="40" align="right" valign="middle">密 码：</td>
				<td>&nbsp;</td>
				<td align="left" valign="middle"><input type="password"
					class="kk" name="txtPassword" value=""
					onFocus="if(this.value==' 请输入用户密码')this.value='';"></td>
			</tr>
			<tr>
				<td height="40" align="right" valign="middle">验证码：</td>
				<td>&nbsp;</td>
				<td align="left" valign="middle">
				<table width="200" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="104"><input type="text" name="txtValidCode"
							size="5" value=""
							onFocus="if(this.value==' 请输入验证码')this.value='';" class="kk_2"></td>
						<td width="96">
						<div><script>getCode();</script></div>
						</td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
				<td height="54" align="right" valign="middle">&nbsp;</td>
				<td>&nbsp;</td>
				<td align="left" valign="middle"><input border="0"
					src="images/login/login_btn.jpg" name="I1" type="image"></td>
			</tr>
		</table>
		</td>
		<td width="62"><img src="images/login/login_r2.jpg" width="94"
			height="389" /></td>
	</tr>
</table>
<table width="1046" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td width="1046" height="175" background="images/login/login_bot.jpg">&nbsp;</td>
	</tr>
</table>
</form>